<template>
  <div style="padding: 0 15px; display: flex">
    <img
      src="../../assets/logo/svg.png"
      @click="toggleClick"
      :class="{ 'is-active': isActive }"
      class="hamburger"
    />
  </div>
</template>

<style scoped>
  .hamburger {
    display: inline-block;
    vertical-align: middle;
    margin-top: 18px;
    width: 16px;
    color: #4196FF;
    height: 16px;
    margin-left: 6px;
  }

  .hamburger.is-active {
    transform: rotate(180deg);
  }
  .nabar-title {
    margin-left: 18px;
    height: 100%;
    width: 200px;
    line-height: 54px;
    color: #4196FF;
    font-weight: 600;
    vertical-align: middle;
  }
</style>

<script>
export default {
  name: 'Hamburger',
  props: {
    isActive: {
      type: Boolean,
      default: false
    }
  },
  methods: {
    toggleClick() {
      this.$emit('toggleClick')
    }
  }
}
</script>

<!--<style scoped>-->
<!--.hamburger {-->
<!--  display: inline-block;-->
<!--  vertical-align: middle;-->
<!--  width: 20px;-->
<!--  height: 20px;-->
<!--}-->

<!--.hamburger.is-active {-->
<!--  transform: rotate(180deg);-->
<!--}-->
<!--</style>-->
